package com.travelshare.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.travelshare.common.annotation.Excel;
import com.travelshare.common.core.domain.TreeEntity;

/**
 * 社区信息对象 tb_info_community
 * 
 * @author travelshare
 * @date 2024-02-22
 */
public class InfoCommunity extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long communityId;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 点赞量 */
    @Excel(name = "点赞量")
    private Integer clickNum;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date releaseTime;

    /** 发布者 */
    private Long userId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;
	
	private String picPath;
	
	private String nickName;
	
	private String avatar;
	
	private String ancestors;
	
	private Long likeFlag;

	public Long getLikeFlag() {
		return likeFlag;
	}

	public void setLikeFlag(Long likeFlag) {
		this.likeFlag = likeFlag;
	}

	public String getAncestors() {
		return ancestors;
	}

	public void setAncestors(String ancestors) {
		this.ancestors = ancestors;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setClickNum(Integer clickNum) 
    {
        this.clickNum = clickNum;
    }

    public Integer getClickNum() 
    {
        return clickNum;
    }
    public void setReleaseTime(Date releaseTime) 
    {
        this.releaseTime = releaseTime;
    }

    public Date getReleaseTime() 
    {
        return releaseTime;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getPicPath() {
		return picPath;
	}

	public void setPicPath(String picPath) {
		this.picPath = picPath;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("communityId", getCommunityId())
            .append("parentId", getParentId())
            .append("picPath", getPicPath())
            .append("content", getContent())
            .append("clickNum", getClickNum())
            .append("releaseTime", getReleaseTime())
            .append("userId", getUserId())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
